﻿using System;
using DevelopTool.Model.CommonModels;

namespace DevelopTool.Model.SchedulerModels
{
    /// <summary>
    /// 定时任务实体
    /// </summary>
    public class Scheduler : ManageMenu
    {
        /// <summary>
        /// 任务类型：1=Sql，2=代码，3=HTTP，4=程序
        /// </summary>
        public string SchedulerType { get; set; } = "Sql";


        /// <summary>
        /// 运行状态
        /// </summary>
        public bool IsRun { get; set; } = false;

        /// <summary>
        /// Cron表达式
        /// </summary>
        public string Cron { get; set; }

        /// <summary>
        /// 执行次数
        /// </summary>
        public int RunNumber { get; set; }


        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StratTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
    }
}
